@font-face {
    font-family: 'CaviarDreams';
    src: url(/Fuentes/caviar_dreams/CaviarDreams.ttf);
}
*{
    margin: 0;
    padding: 0;
}
html, body{
    height: 100%;
}
body{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:    "Header"
                            "Main"
                            "Footer";
    box-sizing: border-box;
    font-family: CaviarDreams;
}
header{
    background-color: #e4f4fd;
    grid-area: Header;
    height: 220px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    min-height: 300px;
    font-weight: bold;
}
header img{
    position: absolute;
    top: 5%;
    height: 17%;
    animation-name: Entrada-img;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
header img:hover{
    cursor: pointer;
}
.Titulo{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
.Titulo2{
    position: absolute;
    left: 13%;
    color: black;
    font-size: 25px;
    animation-name: Entrada-Titulo2;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
#Listado{
    text-align: center;
    position: absolute;
    width: 24%;
    top: 25%;
    animation-name: Entrada-Lista;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    font-size: 20px;
}
#Listado ul{
    list-style-type: none;
    display: flex;
}
.Header-Botones{
    text-decoration: none;
    color: black;
    padding: 10px;
    border-radius: 20px;
}
.Header-Botones:hover{
    transition-duration: 0.5s;
    font-size: 22px;
    background-color: #9edbff;
}
#BotonFormulario{
    position: absolute;
    top: 95px;
    left: 77%;
    width: 8%;
    height: 8%;
    text-align: center;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    animation-name: INICIARSESION;
    animation-duration: 1s;
    cursor: pointer;
    background-color: #9edbff;
}
#BotonFormulario:hover{
    background-color: #95d3f7;
}
#BarraBusqueda{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -20px;
    right: 500px;
    animation-name: Barra;
    animation-duration: 1s;
}
#InputBarra{
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 35px;
}
#BotonBarra{
    padding: 18px 20px;
    margin-left: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#BotonBarra:hover {
    background-color: #0056b3;
}

main {
    background-image: linear-gradient(180deg, #e4f4fd, #95d3f7);
    grid-area: Main;
}
h1{
    animation: Contenido 1s forwards;
    text-align: center;
    font-size: 40px;
    margin-bottom: 2%;
}
#TiposDeServicios{
    animation: Contenido 1s forwards;
    margin-left: 2%;
    margin-right: 2%;
    display: grid;
    grid-template-rows: repeat(2,1fr);
    grid-template-columns: repeat(2,1fr);
    grid-template-areas:    "Mantenimiento Reparacion"
                            "Instalacion Sustitucion";
}
article{
    padding-left: 5%;
    padding-right: 5%;
}
article:hover{
    transition-duration: 0.5s;
    scale: 1.03;
}
#Mantenimiento{
    box-sizing: border-box;
    margin-right: 1%;
    margin-bottom: 1%;
    grid-area: Mantenimiento;
    background-color: white;
    border-radius: 20px;
    box-shadow: rgb(143, 143, 143) 0px 0px 10px;
}
#Mantenimiento h2{
    padding: 2%;
}
#Mantenimiento p{
    padding: 2%;
}
#Reparacion{
    margin-left: 1%;
    margin-bottom: 1%;
    box-sizing: border-box;
    grid-area: Reparacion;
    background-color: white;
    border-radius: 20px;
    box-shadow: rgb(143, 143, 143) 0px 0px 10px;
}
#Reparacion h2{
    padding: 2%;
}
#Reparacion p{
    padding: 2%;
}
#Instalacion{
    margin-top: 1%;
    margin-right: 1%;
    grid-area: Instalacion;
    background-color: white;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: rgb(143, 143, 143) 0px 0px 10px;
}
#Instalacion h2{
    padding: 2%;
}
#Instalacion p{
    padding: 2%;
}
#Sustitucion{
    margin-left: 1%;
    margin-top: 1%;
    grid-area: Sustitucion;
    background-color: white;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: rgb(143, 143, 143) 0px 0px 10px;
}
#Sustitucion h2{
    padding: 2%;
}
#Sustitucion p{
    padding: 2%;
}
#SectionFotos{
    animation: Contenido 1s forwards;
    margin-left: 2%;
    margin-right: 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.Fotos{
    margin-top: 2%;
    width: 400px;
    height: 300px;
    border-radius: 20px;
    box-shadow: rgb(143, 143, 143) 0px 0px 10px;
}
.Fotos:hover{
    transition-duration: 0.5s;
    scale: 1.03;
}
h3{
    text-align: center;
    margin-top: 2%;
    font-size: 35px;
}
#BotonPedirServicio{
    padding: 18px 20px;
    position: relative;
    left: 45%;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#BotonPedirServicio:hover {
    background-color: #0056b3;
}







footer{
    background-color: #95d3f7;
    grid-area: Footer;
    display: flex;
    justify-content: center;
    font-weight: bold;
}
footer div{
    margin: 3%;
    color: black;
    font-size: 20px;
}
footer div a{
    text-decoration: none;
    color: black;
}
footer div a:hover{
    color: grey;
}
@keyframes Contenido {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}   
@keyframes Entrada-img {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes Entrada-Titulo {
    0%{
        top: -300px;
    }
    100%{
        top: 11%;
    }
}
@keyframes Entrada-Titulo2 {
    0%{
        top: -30px;
    }
    100%{
        top: 15%;
    }
}
@keyframes Entrada-Lista {
    0%{
        left: -300px;
    }
    100%{
        left: 4%;
    }
}
@keyframes INICIARSESION {
    0%{
        top: -300px;
    }
    100%{
        top: 95px;
        left: 77%;
    }
}
@keyframes Barra {
    0%{
        top: -300px;
    }
    100%{
        top: -20px;
    }
}
@media (max-width: 600px) {
    main{
        background-color: red;
    }
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 22%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    .Fotos{
        width: 280px;
        height: 200px;
    }
    #BotonPedirServicio{
        position: relative;
        left: 35%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
    }

}
@media (min-width: 600px) and (max-width: 1000px) {
    header img{
        position: absolute;
        top: 9%;
        width: 20%;
        height: auto;
    }
    .Titulo, .Titulo2{
        position: absolute;
        left: 26%;
    }
    #Listado{
        position: absolute;
        top: 28%;
    }
    #BotonFormulario{
        position: absolute;
        margin-top: 2%;
        width: 20%;
    }
    #BarraBusqueda{
        position: relative;
        right: 100%;
        top: -100px;
        width: 200%;
    }
    .Fotos{
        width: 280px;
        height: 200px;
    }
    #BotonPedirServicio{
        position: relative;
        left: 35%;
    }
    @keyframes Barra {
        0%{
            top: -300px;
        }
        100%{
            right: 100%;
            top: -100px;
        }
        
    }
}